#include <stdio.h>
#include "csapp.h"
#define MAXARGS 128
#define MAXLINE 256

void eval(char* cmdline);
int builtin_command(char** argv);
int parseline(char* buf, char** argv);

void shellex(void) {
    char cmdline[MAXLINE];

    while (1) {
        printf("> ");
        fgets(cmdline, MAXLINE, stdin);
        if (feof(stdin)) {
            exit(0);
        }
        eval(cmdline);
    }
}

void eval(char* cmdline) {
    char* argv[MAXARGS];
    char buf[MAXLINE];
    int bg;
    pid_t pid;

    strcpy(buf, cmdline);
    bg = parseline(buf, argv);
}

int builtin_command(char** argv) {
    return 0;
}

int parseline(char* buf, char** argv) {
    return 0;
}

